package com.evil.common.es.dto;

import lombok.Getter;

/**
 * 汇总解析
 *
 * @author liyang
 * @date 2022-08-08 00:00
 */
public abstract class Summary<T> {
    @Getter
    private final T t;
    @Getter
    private final String value;

    protected Summary(T t, String value) {
        this.t = t;
        this.value = value;
    }

    public abstract String getTitle();

    public abstract Summary<T> copy();

    public abstract Summary<T> copy(String value);

}
